import unittest
from case1 import TestDemo1
from case2 import TestDemo2

suit = unittest.TestSuite()
# unittest.makeSuite(类名)添加类名下的所有案例(有的python版本不显示该方法)
suit.addTest(unittest.makeSuite(TestDemo1))
suit.addTest(unittest.makeSuite(TestDemo1))
runner = unittest.TextTestRunner()
runner.run(suit)